#ifndef THREADDIALOG_H
#define THREADDIALOG_H

#include <QWidget>
#include <ThreadDAQ.h>

QT_BEGIN_NAMESPACE
namespace Ui { class ThreadDialog; }
QT_END_NAMESPACE


class ThreadDialog : public QWidget
{
    Q_OBJECT

public:
    ThreadDialog(QWidget *parent = nullptr);
    ~ThreadDialog();

public slots:
    void onThreadNewValue(int *data, int count, int bufNo);
private slots:
    void on_pushButton_startThread_clicked();

    void on_pushButton_endThread_clicked();

private:
    Ui::ThreadDialog *ui;

    ThreadDAQ * mThreadProducer =nullptr;
    ThreadShow * mThreadConsumer = nullptr;

};
#endif // THREADDIALOG_H
